import { PaginationParam, PaginationResult } from "../../models";
import req, { RequsetOptons } from "/@/api/req";
export enum Api {
  addEquipmentGroups = "api/aiot/equipmentGroups/addEquipmentGroups",
  deleteEquipmentGroupsByIds = "api/aiot/equipmentGroups/deleteEquipmentGroupsByIds",
  pageEquipmentGroups = "api/aiot/equipmentGroups/pageEquipmentGroups",
  updateEquipmentGroups = "api/aiot/equipmentGroups/updateEquipmentGroups",
  // 设备
  addEquipment = "api/aiot/equipment/addEquipment",
  deleteEquipmentByIds = "api/aiot/equipment/deleteEquipmentByIds",
  // getEquipmentByEquipmentId = "api/aiot/equipment/getEquipmentByEquipmentId",
  updateEquipment = "api/aiot/equipment/updateEquipment",
  pageEquipments = "api/aiot/equipment/page",
}

export function addEquipmentGroups(data: PaginationParam<{ searchText?: string }>) {
  return req.commonPost<boolean>(Api.addEquipmentGroups, data);
}
